class Inputbox(db.Model):
    __tablename__ = "inputbox"

    inputbox_id = db.Column(db.Integer, primary_key=True, unique=True)
    user_id = db.Column(db.Integer, db.ForeignKey('student.student_id'))
    message = db.Column(db.Text)
    timestamp = db.Column(db.DateTime, index=True, default=datetime.utcnow)
    hasBeenRead = db.Column(db.Boolean, default=False)